package com.xxl.dto.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 视图传递对象
 * @author xxl
 * @date 2023/4/6
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "BlogVo",title = "视图传递对象")
public class BlogVo implements Serializable {
    @Length(min = 5,message = "标题长度最小不能为5")
    @Schema(title = "博客标题")
    private String title;
    @Length(min = 10,message = "内容长度最小不能为10")
    @Schema(title = "博客内容")
    private String content;
    @Length(min = 10,message = "简介内容长度最小不能为10")
    @Schema(title = "博客内容简介")
    private String simpleContent;
}
/**
 *
 * @param
 * @return
 */